package com.ss.s3_Operator;

import java.util.Scanner;
/**
 * @Auther: 520ljs
 * @Date: 2022/3/12 - 03 - 12 - 21:38
 */
public class TestOpe07 {
    public static void main (String[] args){
        //实现功能：给出三个数，求和；
        Scanner sc = new Scanner(System.in);

        System.out.print("请录入三个数；");

        int num1 = sc.nextInt();
        int num2 = sc.nextInt();
        int num3 = sc.nextInt();
        //2.求和
        //int sum = num1+num2+num3;
        //定义一个变量，用来接收和；
        int sum = 0;
        sum = sum + num1;//等效：sum += num1;
        sum = sum + num2;//sum += num2;
        sum = sum + num3;//sum += num3;
        //3.将和输出：
        System.out.println("和："+sum);
    }
}
